//显示客户信息所需样式所需样式()
function ShowUserFun(params) {
	var win = new top.Ext.Window(
			{
				id : params.winId,
				title : params.title,
				height : params.height,
				width : params.width,
			    layout: "fit",
				modal : true,
				bodyStyle : "bgcolor:white",
				items : [ {
					contentEl : Ext.DomHelper.append(document.body, {
						tag : 'iframe',
						id : 'myIframe',
						name : 'myIframe',
						style : "border 0px none;scrollbar:true;",
						height : "100%",
						width : "100%"
					})
				} ],
				buttons : [
						 {
							text : '&nbsp;&nbsp;关&nbsp;&nbsp; 闭&nbsp;&nbsp;',
							handler : function() {
								saveFlag = false;
								parent.Ext.getCmp(params.winId).close();
								//var callback_fun = params.refresh_fun;
								//callback_fun();
								win == null;
							}
						} ],
				listeners : {
					"show" : function() {
						var showUrl = params.showUrl;
						if (showUrl.indexOf('?') > 0) {
							showUrl = showUrl + '&rnd=' + Math.random();
						} else {
							showUrl = showUrl + '?rnd=' + Math.random();
						}
						parent.document.getElementById("myIframe").src = showUrl;
					}
				}
			});
	win.show();
}

 

